package com.zk.mockito.cases;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import org.mockito.junit.MockitoJUnitRunner;

import java.util.List;

@RunWith(MockitoJUnitRunner.class)
public class Case009_MockitoAnnotationsDemo {
    static {
        /**
         * Initializes objects annotated with Mockito annotations for given testClass:
         * @Mock, @Spy, @Captor, @InjectMocks
         * See examples in javadoc for MockitoAnnotations class.
         * Returns:
         * A closable to close when completing any tests in testClass.
         */
        //   MockitoAnnotations.openMocks(List.class);
    }

    @Mock
    private List calculator;
    @Mock
    private List database;
    @Mock
    private List userProvider;
    @Mock
    private List manager;

    @Test
    public void testSomethingInJunit5() {

        calculator.add("one");

    }


}
